import request from "@/request/index.js";

const auth = "auth"; //http://101.42.107.47:30019文档
const base = "base"; //http://101.42.107.47:30020文档
const zhpt = "zhpt"; //http://101.42.107.47:30018文档

//获取字典管理列表数据
export const getDictListApi = (data) => {
    return request({
        url: `/api/${base}/dict/find/dictList`,
        method: 'GET',
        params: data,
    })
}

//获取字典项列表数据
export const getDictItemListApi = (data) => {
    return request({
        url: `/api/${base}/dict/find/dict`,
        method: 'POST',
        data,
    })
}

//获取行政区
export const getRegionApi = (params) => {
    return request({
        url: `/api/${base}/dict/sup/region`,
        method: "get",
        params,
    });
};

//获取技术所属领域
export const getDomainApi = (params) => {
    return request({
        url: `/api/${base}/dict/skill/domain`,
        method: "get",
        params,
    });
};